#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades_v2.jar 23 23`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else
  echo "Test Passed"
fi

echo "Test Case 1: Testing 0/0..."

tc=`java -jar Grades_v2.jar 0 0`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else
  echo "Test Passed"
fi

echo "Test Case 1: Testing 99/99..."

tc=`java -jar Grades_v2.jar 50 50`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else
  echo "Test Passed"
fi

echo "Test Case 1: Testing 33/33..."

tc=`java -jar Grades_v2.jar 33 33`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else
  echo "Test Passed"
fi

echo "Test Case 1: Testing 58/58..."

tc=`java -jar Grades_v2.jar 58 58`

if [ "$tc" = "Component Fail" ]
  then
   echo "Test Failed"
else
  echo "Test Passed"
fi
